import { ElMessage, ElMessageBox } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { App } from 'vue'

export default function (app: App) {
  // element-plus 配置
  app.config.globalProperties.$ELEMENT = { size: 'mini', locale: zhCn }
  app.config.globalProperties.$message = ElMessage
  app.config.globalProperties.$messagebox = ElMessageBox
}
